description = "breadCrumb"

==
{% set rootcategr = catalog.categories %}
<div class="breadCrumb">
	<div class="pankz">
		<a href="/" shape="rect" rel="nofollow" style="color: #363636;">KOKOMISHOP</a>&gt;
		{% if category %}
			{% set parents = category.getParents %}
			{% if count(category.children)<1 %}
				{% for catesb in rootcategr %}
					{% if catesb.id == category.parent_id and catesb.id!=5 %}
						<a href="{{ catesb.url }}?rel=breadcrumbs" title="{{ catesb.name }}">{{ catesb.name }}</a> > {{ category.name }}
					{% elseif catesb.id==5 %}
						{% for catecd in catesb %}
							{% if catecd.id == category.parent_id %}
							<a href="{{ catecd.url }}?rel=breadcrumbs" title="{{ catecd.name }}">{{ catecd.name }}</a> > {{ category.name }}
							{% else %}
								{% for subcd in catecd %}
									{% if subcd.id == category.parent_id %}
									<a href="{{ subcd.url }}?rel=breadcrumbs" title="{{ subcd.name }}">{{ subcd.name }}</a> > {{ category.name }}
									{% endif %}
								{% endfor %}
							{% endif %}
						{% endfor %}
					{% endif %}
				{% endfor %}
			{% endif %}
			{% if category.parent_id == 5 %}
				<a href="{{ category.url }}?rel=breadcrumbs" title="{{ category.name }}">{{ category.name }}</a>
			{% else %}
				{% if count(parents)== 0 %}
					<a href="{{ category.url }}?rel=breadcrumbs" title="{{ category.name }}">{{ category.name }}</a>
				{% endif %}
			{% endif %}

		{% endif %}
		{% if categories %}
			{% for cat in categories %}
				{% if loop.index <= 3 %}
					<a href="{{ cat.url }}?rel=breadcrumbs" title="{{ cat.name }}">{{ cat.name }}</a>&gt;
				{% endif %}
			{% endfor %}
		{% endif %}
		{% if product %}
			<a href="{{ product.url }}?rel=breadcrumbs" title="{{ product.name }}">{{ product.name }}</a>&gt;
		{% endif %}
		{% if pages %}
			{% for title, url in pages %}
				{% if url != ''%}
					{% if count(pages) == loop.index %}
						<a href="{{ url }}?rel=breadcrumbs" title="{{ title }}">{{ title }}</a>&gt;
					{% else %}
						<a href="{{ url }}?rel=breadcrumbs" title="{{ title }}">{{ title }}</a>&gt;
					{% endif %}
				{% else %}
					{{ title }}
				{% endif %}
			{% endfor %}
		{% endif %}
		{% for feature in displayFeature %}
			{% set filterUriKey = paramKey ? : 'feature' %}
			{% set uriValue = applyFilterUriValue(feature.name.id, feature.value.id, paramValue, 'del') %}
			{% if uriValue %}
				{% set url = 'catalog/filter-feature'|page({slug: filterUriKey ~ '-' ~ uriValue ~ '-' ~ category.id}) ~ '.html' %}
			{% else %}
				{% set url = category.url %}
			{% endif %}
			<a href="{{ url }}?rel=breadcrumbs">/{{ feature.value.name }} <i class="fa fa-close"></i></a>
		{% endfor %}
	</div>
</div>